<!-- 保险管理|edit:编辑,delete:删除,add:添加 -->
<div class="layui-col-xs6 layui-col-md12">
    <!-- 搜索框 -->
    <form class="layui-form" action="" style="margin-top:10px;">
        <div class="layui-form-item layui-col-md12 layui-col-xs12">
            <div class="layui-input-inline">
                <input type="hidden" name="car_id" class="car_id" value="{$Think.get.car_id}">
                <input type="text" name="number" placeholder="点击选择车辆" autocomplete="off" class="layui-input number" readonly="readonly" value="{$Think.get.number}"
                    style="cursor: pointer;">
            </div>
            <div class="layui-input-inline">
                <input type="text" name="service_name" placeholder="请输入保险服务名称" autocomplete="on" class="layui-input" value="{$Think.get.service_name}">
            </div>
            <div class="layui-input-inline">
                <select name="policy_type" value="{$Think.get.policy_type}">
                    <option {$Think.get.policy_type==0?selected: ""} value="0" selected>不限险种</option>
                    <option {$Think.get.policy_type==1?selected: ""} value="1">交通强制险</option>
                    <option {$Think.get.policy_type==2?selected: ""} value="2">商业险</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" id="between" name="between" placeholder="点击选择维修时间范围" readonly="readonly" style="cursor: pointer;">
            </div>
            <button class="layui-btn layui-btn-normal">
                <span>查询</span>
            </button>
            <button type="reset" class="layui-btn layui-btn-primary reset">重置</button>
        </div>
    </form>
    <!-- 车辆操作 -->
    {if $Think.get.filter}
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-sm layui-btn-primary use_data">
                查看可用记录
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary " style="float: right;border-left: 1px solid #c9c9c9;">
                导出数据
            </button> -->
        </div>
    </div>
    {else/}
    <div>
        <div class="layui-btn-group" style="width: 100%;">
            <button class="layui-btn layui-btn-sm layui-btn-primary" id="add" data-btn="add">
                新增
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary delete-multiple" data-btn="delete">
                删除
            </button>
            <button class="layui-btn layui-btn-sm layui-btn-primary delete_data" data-btn="delete">
                查看已删除记录
            </button>
            <!-- <button class="layui-btn layui-btn-sm layui-btn-primary " style="float: right;border-left: 1px solid #c9c9c9;">
                导出数据
            </button> -->
        </div>
    </div>
    {/if}
    <!-- 表单 -->
    <div class="table_margin_0">
        <table class="layui-hide" id="insurance" lay-filter="demo"></table>
    </div>
    <!-- 分页 -->
    <div id="page"></div>
</div>
</div>
<script type="text/html" id="demo">
    <a class="layui-btn layui-btn-xs" lay-event="edit" data-btn="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-btn="delete">删除</a>
</script>
<script type="text/html" id="carId">
    {{# if(d.car.number ){ }}
    <a href="{:url('html/car/car_detail')}?car_id={{d.car_id}}&number={{d.car.number}}" class="layui-table-link">{{ d.car.number }}</a>
    {{# } else { }} 暂无车牌 {{# } }}
</script>